package com.zenaprod.zenda.map;


import com.zenaprod.twodcore.graphic.element.Element;

import java.util.List;
import java.util.Observable;


public class MapModel extends Observable {
    private List<Element> elements;
    private int width;
    private int height;


    public MapModel(int width, int height) {
        this.width = width;
        this.height = height;
    }


    public List<Element> getElements() {
        return elements;
    }

    public void addElement(Element element) {
        elements.add(element);
        notifyObservers(element);
    }



}
